import request from '@/utils/request'

/* 用户接口 */
const UserApi = {
  baseUrl: process.env.VUE_APP_userAPI,
  baseUrl2: process.env.VUE_APP_agentlistapp,
  // 登录
  login (data) {
    return request({
      url: `${this.baseUrl}/v1/oms/ksclientapisrv/zongdai/login`,
      method: 'POST',
      data
    })
  },
  // 获取用户信息
  getInfo (data) {
    return request({
      url: `${this.baseUrl2}/v1/oms/authorityapisrv/user/authpermission`,
      method: 'POST',
      data
    })
  }
}

export default UserApi
